<?php
class MyClass
{
	private $prop1 = '$prop1';
	private $prop2 = '$prop2';
	
	public function __get($paramName)
	{
		$props = get_class_vars(get_class($this));
		var_dump($props);
		var_dump($paramName);
		if(array_key_exists($paramName, $props)){
			throw new ErrorException("Cant call private prop");
		}
		var_dump($paramName);
		return $this->$paramName;
	}
	
	public function __set($k, $v)
	{
		var_dump($k);
		var_dump($v);
		$this->$k = (array)$v;
	}
	
	public function getMessage()
	{
		return $a;
	}
}
try{
	$obj = new MyClass();
	$obj->getMessage();
}catch(Exception $e){
	var_dump($e->getMessage());
}
$obj->trttt = 'fff';
var_dump($obj->trttt);